package main

import (
	"github.com/EndlessCheng/codeforces-go/main/testutil"
	"testing"
)

func TestCF3B(t *testing.T) {
	// just copy from website
	rawText := `
inputCopy
3 2
1 2
2 7
1 3
outputCopy
7
2
inputCopy
100 71
1 93
2 61
2 64
1 56
1 76
2 84
1 64
1 59
1 67
2 48
1 97
2 54
2 98
2 58
2 33
2 98
1 96
2 89
1 73
1 60
2 71
2 43
1 55
2 72
1 76
2 92
2 80
1 85
1 90
1 46
1 43
2 60
2 68
1 82
2 64
1 21
1 94
1 49
2 20
2 41
1 92
1 59
2 49
2 60
1 24
1 48
2 17
2 87
2 93
1 79
2 65
2 71
1 95
1 100
2 86
1 65
1 93
2 69
2 87
1 84
1 89
2 67
2 84
2 52
2 87
1 44
2 80
2 82
1 89
2 68
1 64
2 97
2 98
1 21
2 51
1 54
1 88
2 86
2 93
2 39
2 90
2 88
1 66
1 91
2 71
2 91
2 75
1 22
2 42
1 71
1 74
2 68
1 86
2 100
2 80
1 88
1 85
1 60
1 85
2 32
outputCopy
4511
54 11 17 53 37 57 1 41 84 29 69 61 96 77 93 99 97 28 60 34 50 25 5 91 19 90 9 83 56 71 7 98 20 42 8 4 23 76 38 46 30 94 73 16 13 72 79 49 26 86 81 18 82 65 59 48`
	testutil.AssertEqualCase(t, rawText, -1, CF3B)
}
